<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es-es" >
<head>
	<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
	<meta name="author" content="Marc Bayon y Fj.Espinaco" />
	<meta name="keywords" content="design, css, cascading, style, sheets, xhtml, graphic design, w3c, web standards, visual, display" />
	<meta name="description" content="Pagina principal de nuestra aplicacion" />
	<meta name="robots" content="all" />
	
	
	<title>Bienvenidos a Ardomus: Sistema domótico inalambrico integrado</title>

	<!-- to correct the unsightly Flash of Unstyled Content. http://www.bluerobot.com/web/css/fouc.asp -->
	<script type="text/javascript">
	
	
	</script>
	<!-- <style type="text/css" title="currentStyle" media="screen">
		@import "/static/estilos.css";
	</style> -->
	<link href="/site_media/estilos.css" type="text/css" rel="stylesheet" />
	<link rel="Shortcut Icon" type="image/x-icon" href="/site_media/weblogo.png" />	
	
</head>

<body id="ardomus">

<div id="container">
	<div id="intro">
		<div id="pageHeader">
			<h2><span>Sistema de Domótica Inalámbrico Integrado <acronym title="Cascading Style Sheets"></acronym></span></h2>
			<h1><a href="/zonas"><span>Árdomus</span></a></h1>
		</div>

		<div id="login">
		{% block login %} {% endblock %}
		{% if user.is_active %}
		<p>Bienvenido {{ user }} <a href="/logout"> Logout </a></p>
		{% endif %}
		</div>
	</div>
	<div id="error">
		<h3> {{ error }}</h3>
	</div>

	<div id="content">
		<div id="mainContent">
			{% block content %} {% endblock %}
		</div>
		<br />
		<br />
		{% if user.is_active %}
		<form action="/zonas/">
			<div>
			<input type="submit" value="Pagina Principal"/>
			</div>
		</form>
		{% endif %}
	</div>

	{% if user.is_active %}
	<div id="linkList"> 
		<div id="linkList2">

			<div id="lselect">
				<h4 class="select"><span>Opciones Avanzadas:</span></h4>
				<ul>
					<li>
					<div id="tecnico"> 
					{% if user.is_superuser %}
					<a href="/tecnico/"> Tecnico </a>
					{% endif %}
					</div>
	
					<div id="administrador"> 
					{% if user.is_staff %}
					<a href="/administrador/"> Administrador </a>
					{% endif %}
					</div>
					<div id="sonido">
					{% if not user.is_superuser and user.is_active %} 
					<a href="/sonido/"> Reproductor de musica </a>
					{% endif %}
					</div>
					<div id="ahorro">
					{% if user.is_active %} 
					<a href="/ahorro/"> Ahorro Energético</a>
					{% endif %}
					</div>
					{% block opciones %}
					{% endblock %}
					</li>  
				</ul>
			</div>

			<div id="larchives">
				<h3 class="archives"><span>Otro menu</span></h3>
			</div>
			
			<div id="lresources">
				<h3 class="resources"><span>Otro Menu</span></h3>
			</div>
		</div>
	</div>
	{% endif %}
	
</div>

<!-- These extra divs/spans may be used as catch-alls to add extra imagery. -->
<div id="extraDiv1"><span></span></div>
<div id="extraDiv2"><span></span></div>
<div id="extraDiv3"><span></span></div>
<div id="extraDiv4"><span></span></div>
<div id="extraDiv5"><span></span></div>
<div id="extraDiv6"><span></span></div>

	<div id="footer">
		<h4>Proyecto fin de carrera a cargo de FjEspinaco y Marc Bayon
			Todos los derechos reservados(c)</h4>
		<!--<a href="http://validator.w3.org/check/referer" title="Check the validity of this site&#8217;s XHTML">xhtml</a> &nbsp; 
			<a href="http://jigsaw.w3.org/css-validator/check/referer" title="Check the validity of this site&#8217;s CSS">css</a> &nbsp; 
			<a href="http://creativecommons.org/licenses/by-nc-sa/1.0/" title="View details of the license of this site, courtesy of Creative Commons.">cc</a> &nbsp;

			<a href="http://mezzoblue.com/zengarden/faq/#s508" title="Read about the accessibility of this site">508</a> &nbsp;
			<a href="http://www.mezzoblue.com/zengarden/faq/#aaa" title="Read about the accessibility of this site">aaa</a> -->
		<p>
			<a href="http://validator.w3.org/check?uri=referer"><img
				src="http://www.w3.org/Icons/valid-xhtml10"
				alt="Valid XHTML 1.0 Strict" height="31" width="88" />
			</a> <a href="http://jigsaw.w3.org/css-validator/check/referer"> <img
				style="border: 0; width: 88px; height: 31px"
				src="http://jigsaw.w3.org/css-validator/images/vcss"
				alt="¡CSS Válido!" /> </a>
		</p>

	</div>

</body>
</html>